from typing import Annotated

import typer

app = typer.Typer()


@app.command()
def hello(name: Annotated[str, typer.Argument(help="你的名称")] = "Python",
          uppercase: Annotated[bool, typer.Option(help="是否显示大写的名称？")] = False):
    """
    打印欢迎信息。
    """
    if uppercase:
        print(f"Hello {name.upper()}")
    else:
        print(f"Hello {name}")
